class Account{
    accountSelect(phone,password,informationId){
        return new Promise((resolve, reject) => {
            $.ajax({
                url: "/www.xiaomi.com/account/servlet",
                data:{
                    phone:phone,
                    password:password,
                    informationId:informationId
                },
                success: function (response) {
                    resolve(response);
                },
                error: function (error) {
                    reject(error);
                }
            });
        });
    }
    orderSelect(informationId){
        return new Promise((resolve, reject) => {
            $.ajax({
                method:"post",
                url: "/www.xiaomi.com/account/servlet?action=order",
                data:{
                    informationId:informationId
                },
                success: function (response) {
                    resolve(response);
                },
                error: function (error) {
                    reject(error);
                }
            });
        });
    }
    deleteSelect(informationId){
        return new Promise((resolve, reject) => {
            $.ajax({
                method:"post",
                url: "/www.xiaomi.com/account/servlet?action=delete",
                data:{
                    informationId:informationId
                },
                success: function (response) {
                    resolve(response);
                },
                error: function (error) {
                    reject(error);
                }
            });
        });
    }
}